{% extends 'myhome/person/index.html' %}

{% block css %}
		<title>个人信息</title>

		<link href="/static/myhome/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/static/myhome/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/static/myhome/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/static/myhome/css/infstyle.css" rel="stylesheet" type="text/css">
		<script src="/static/myhome/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="/static/myhome/AmazeUI-2.4.2/assets/js/amazeui.js"></script>	
{% endblock %}		

{% block count %}
				<div class="main-wrap">

					<div class="user-info">
						
						<!--头像 -->
						<div class="user-infoPic">
							{% for i in uinfo %}
							<div class="filePic">
								<input type="file" name="head_url" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" accept="image/*">
								<img class="am-circle am-img-thumbnail" src="{{i.head_url}}" alt="" />
							</div>
							
							{% endfor %}
							<p class="am-form-help">头像</p>

							<div class="info-m">
								<div><b>用户名：<i>{{ request.session.userinfo.vipuser }}</i></b></div>
								<div class="vip">
                                      <span>
                                      	
                                      </span>
                                      <a href="#">会员专享</a>
								</div>
							</div>
						</div>
						
						

						<!--个人信息 -->
						<div class="info-main">
							<form action="{% url 'myhome_information' %}" method="post" class="am-form am-form-horizontal">
								{% csrf_token %}
								{% for i in uinfo %}
								<div class="am-form-group">
									<label for="user-name2" class="am-form-label">昵称</label>
									<div class="am-form-content">
										<input type="text" disabled="disabled id="user-name2" value="{{request.session.userinfo.vipuser}}">
                                          <small>昵称长度不能超过40个汉字</small>
									</div>
								</div>

								<div class="am-form-group">
									<label class="am-form-label">性别</label>
									<div class="am-form-content sex">
										<!-- <label class="am-radio-inline">
											<input type="radio" name="radio10" value="male" data-am-ucheck> 男
										</label>
										<label class="am-radio-inline">
											<input type="radio" name="radio10" value="female" data-am-ucheck> 女
										</label> -->
										
											<input type="radio" name="sex" {% if i.sex == '1' %} checked {% endif %} class="tpl-form-input" id="user-name" value="1"> 男 
										
                                			<input type="radio" name="sex" {% if i.sex == '0' %} checked {% endif %} class="tpl-form-input" id="user-name" value="0"> 女
										

											<input type="radio" name="sex" {% if i.sex == '3' %} checked {% endif %} class="tpl-form-input" id="user-name" value="3"> 保密

									</div>

								</div>


								<div class="am-form-group">
									<label for="user-phone" class="am-form-label">电话</label>
									<div class="am-form-content">
										<input id="user-phone" name="phone" value="{{i.phone}}" type="tel">

									</div>
								</div>
								<div class="am-form-group">
									<label for="user-email"  class="am-form-label">电子邮件</label>
									<div class="am-form-content">
										<input id="user-email" name="email" value="{{i.email}}" type="email">
									</div>
								</div>
								<!-- <div class="am-form-group address">
									<label for="user-address" class="am-form-label">收货地址</label>
									<div class="am-form-content address">
										<a href="address.html">
											<p class="new-mu_l2cw">
												<span class="province">湖北</span>省
												<span class="city">武汉</span>市
												<span class="dist">洪山</span>区
												<span class="street">雄楚大道666号(中南财经政法大学)</span>
												<span class="am-icon-angle-right"></span>
											</p>
										</a>

									</div>
								</div>
								<div class="am-form-group safety">
									<label for="user-safety" class="am-form-label">账号安全</label>
									<div class="am-form-content safety">
										<a href="safety.html">

											<span class="am-icon-angle-right"></span>

										</a>

									</div>
								</div> -->
								<div class="info-btn">
									<button class="am-btn am-btn-danger">保存修改</button>
								</div>
							{% endfor %}
							</form>
						</div>

					</div>
				</div>
{% endblock %}
